﻿using HandyControl.Controls;
using System.Windows;

namespace LpbPrj.Client.Controls;

/// <summary>
/// 颜色
/// </summary>
public class SolidColorBrushPropertyEditor : PropertyEditorBase
{
    public override FrameworkElement CreateElement(PropertyItem propertyItem) => new ColorPickerEx
    {
        IsEnabled = !propertyItem.IsReadOnly
    };

    public override DependencyProperty GetDependencyProperty() => ColorPickerEx.SelectedBrushProperty;
}
